package com.eas.biz.dao.statistic.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.statistic.dataobject.StudentQuestionStatisticDO;
import com.eas.biz.dao.statistic.interfaces.StudentQuestionStatisticDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("studentQuestionStatisticDao")
public class StudentQuestionStatisticDaoImpl extends GenericDaoImpl<StudentQuestionStatisticDO>
        implements StudentQuestionStatisticDao {

    public StudentQuestionStatisticDO selectById(long id) {
        return selectById("StudentQuestionStatistic.selectById", id);
    }

    public long insert(StudentQuestionStatisticDO object) {
        return insert("StudentQuestionStatistic.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("StudentQuestionStatistic.deleteById", id);
    }

    public int update(StudentQuestionStatisticDO object) {
        return update("StudentQuestionStatistic.update", object);
    }

    public List<StudentQuestionStatisticDO> selectByQuery(BaseQuery query) {
        return selectByQuery("StudentQuestionStatistic.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("StudentQuestionStatistic.countByQuery", query);
    }

    public int deleteByQuery(BaseQuery query) {
        return deleteByQuery("StudentQuestionStatistic.deleteByQuery", query);
    }

}
